#h = [int(i) for i in input().split()]
#c = max(h) - min(h)
#print(c)
ABC=[int(i) for i in input().split() ]
A=max(ABC)-min(ABC)
print(A)





